<?php
/**
 * Created by PhpStorm.
 * User: xaq
 * Date: 2017/5/11
 * Time: 15:30
 */

namespace app\api\controller\v2;

use app\lib\exception\BannerMissException;
use app\api\validate\IDMustBePostiveInt;
use app\api\model\Banner as BannerModel;
use think\Controller;
use think\Exception;


class Banner extends Controller
{
    public function getBanner($id)
    {
        return 'This is a V2 Vesion';

    }
    public function setBanner($id) {
        BannerModel::create([
            'id' => $id,
            'data' => 'test'
        ]);
    }

}